﻿#Region "Imports Directive"

Imports System

#End Region

Namespace C4F.DevKit.Bluetooth

    Namespace FileTransferProfile

        ''' <summary>
        ''' EventArgs class to be used when an GetFile operation 
        ''' begins.
        ''' </summary>
        Public Class GetFileBeginEventArgs
            Inherits EventArgs

#Region "Private Members"

            ''' <summary>
            ''' The location of the remote file that is being pulled.
            ''' </summary>
            Private remFilePath As String

            ''' <summary>
            ''' The user-supplied state object supplied when the asynchronous 
            ''' operation was requested.
            ''' </summary>
            Private m_userState As Object

#End Region

#Region "Public Properties"

            ''' <summary>
            ''' Gets the location of the file that is being pulled.
            ''' </summary>
            ''' 
            Public ReadOnly Property RemoteFilePath() As String

                Get
                    Return Me.remFilePath
                End Get

            End Property

            ''' <summary>
            ''' Gets the user-supplied state object supplied when the 
            ''' asynchronous operation was requested.
            ''' </summary>
            Public ReadOnly Property UserState() As Object

                Get
                    Return Me.m_userState
                End Get

            End Property

#End Region

#Region "Constructor"

            ''' <summary>
            ''' Initializes the GetFileBeginEventArgs object.
            ''' </summary>
            ''' <param name="remoteFilePath">The location of the file to be 
            ''' pulled.</param>
            ''' <param name="userState">The user-supplied state object supplied
            ''' when the asynchronous operation was requested.</param>
            Public Sub New(ByVal remoteFilePath As String, ByVal userState As Object)

                MyBase.New()
                Me.remFilePath = remoteFilePath
                Me.m_userState = userState

            End Sub

#End Region

        End Class
    End Namespace
End Namespace
